<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" href="../res/layui/css/layui.css">
    <style>
        #userInfoDialog {
            padding: 20px;
            width: 400px;
            display: none; /*隐藏层*/
        }

        #userInfoDialog p {
            padding: 10px 0;
        }

        #pageBox {
            overflow: hidden;
        }
    </style>

</head>
<body>

<div style="padding: 15px;" id="pageBox">

    <div class="count-box">
        <div class="layui-row layui-col-space16">
            欢迎页面
        </div>
    </div>

</div>
<script src="../res/js/config.js"></script>
<script src="../res/layui/layui.js"></script>
<script src="../res/echarts/echarts.js"></script>
<script>
    //JS
    layui.config({
        base: '/echarts/'
    }).use(['element', 'layer', 'util'], function () {
        var element = layui.element
            , layer = layui.layer
            , $ = layui.$

        //安全退出
        $('#logout').on('click', function () {
            layer.confirm('确定退出吗？', {icon: 3}, function () {
                //清理session中的数据
                sessionStorage.clear();
                //使用登录页面替换当前页面
                location.replace('login.html');
            })
        })

    });
</script>
</body>
</html>